package org.gongliang.jsmile.common.exception;

import org.gongliang.jsmile.common.enums.KException;

/**
 * 
 * @Description 通用逻辑异常
 * @author 龚亮
 * @date 2017年3月30日 下午3:34:16
 */
public class JSmileException extends BaseException {

	private static final long serialVersionUID = 5996594069536988033L;

	public JSmileException(Integer errCode, String errMsg, Throwable e) {
		super(errCode, errMsg, e);
	}

	public JSmileException(KException k, Throwable e) {
		super(k.getResCode(), k.getResMsg(), e);
	}
	public JSmileException(KException k) {
		super(k.getResCode(), k.getResMsg(), null);
	}
	
	public JSmileException(String errMsg, Throwable e) {
		super(errMsg, e);
	}
	public JSmileException(String errMsg) {
		super(errMsg, null);
	}
}
